<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Whether this objectʼs time is after that of the passed object</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="intlcalendar.add.html">« IntlCalendar::add</a></li>
      <li style="float: right;"><a href="intlcalendar.before.html">IntlCalendar::before »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.intlcalendar.html">IntlCalendar</a></li>
    <li>Whether this objectʼs time is after that of the passed object</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="intlcalendar.after" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">IntlCalendar::after</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL &gt;= 3.0.0a1)</p><p class="refpurpose"><span class="refname">IntlCalendar::after</span> &mdash; <span class="dc-title">Whether this objectʼs time is after that of the passed object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-intlcalendar.after-description">
  <h3 class="title">说明</h3>
  <p class="para">
   面向对象风格
  </p>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>IntlCalendar::after</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$other</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   过程化风格
  </p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>intlcal_after</strong></span>(<span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$calendar</code></span>, <span class="methodparam"><span class="type"><a href="class.intlcalendar.html" class="type IntlCalendar">IntlCalendar</a></span> <code class="parameter">$other</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Returns whether this objectʼs time succeeds the argumentʼs time.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-intlcalendar.after-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">calendar</code></dt>

    <dd>

     <p class="para"><span class="classname"><a href="class.intlcalendar.html" class="classname">IntlCalendar</a></span> 实例。</p>
    </dd>

   
   
    <dt>
<code class="parameter">other</code></dt>

    <dd>

     <p class="para">
      The calendar whose time will be checked against the primary objectʼs time.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-intlcalendar.after-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>true</code></strong> if this objectʼs current time is after that of the
   <code class="parameter">calendar</code> argumentʼs time. Returns <strong><code>false</code></strong> otherwise.
  </p>
  <p class="para">On failure <strong><code>false</code></strong> is also returned. To detect error conditions use <span class="function"><a href="function.intl-get-error-code.html" class="function">intl_get_error_code()</a></span>, or set up Intl to throw <a href="intl.configuration.html#ini.intl.use-exceptions" class="link">exceptions</a>.</p>
 </div>



 <div class="refsect1 examples" id="refsect1-intlcalendar.after-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2387">
   <p><strong>示例 #1 <span class="function"><strong>IntlCalendar::after()</strong></span></strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$cal1&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">createInstance</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">$cal2&nbsp;</span><span style="color: #007700">=&nbsp;clone&nbsp;</span><span style="color: #0000BB">$cal1</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal1</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">after</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal2</span><span style="color: #007700">),&nbsp;</span><span style="color: #FF8000">//false<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$cal2</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">after</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal1</span><span style="color: #007700">));&nbsp;</span><span style="color: #FF8000">//false<br /><br /></span><span style="color: #0000BB">$cal1</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">roll</span><span style="color: #007700">(</span><span style="color: #0000BB">IntlCalendar</span><span style="color: #007700">::</span><span style="color: #0000BB">FIELD_MILLISECOND</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal1</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">after</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal2</span><span style="color: #007700">),&nbsp;</span><span style="color: #FF8000">//true<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$cal2</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">after</span><span style="color: #007700">(</span><span style="color: #0000BB">$cal1</span><span style="color: #007700">));&nbsp;</span><span style="color: #FF8000">//false</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


</div></div></div></body></html>